package org.sensornet2010.co2sh.prototype;


import android.app.Activity;

public class DummyCO2AppMeasure extends Activity {
	
	/*private RemoteServer server;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.measure);
        
        final String serverUrl, recordingInterval, recordingDuration;
        
        TextView tv_info = (TextView)findViewById(R.id.tv_info);
        
        if (getIntent().getExtras() == null){
        	tv_info.setText("Not configured!");
        	serverUrl = "";
        	recordingInterval = "";
        	recordingDuration = "";
        } else {
        	serverUrl = getIntent().getExtras().getString("Server");
        	recordingInterval = getIntent().getExtras().getString("Interval");
        	recordingDuration = getIntent().getExtras().getString("Duration");
            tv_info.setText("Server: " + serverUrl + " \n " + "Interval: " + recordingInterval + " \n " + "Duration: " + recordingDuration + " \n ");
        }
        

        //exit button
        Button b_exit2 = (Button)findViewById(R.id.b_exit2);        
        b_exit2.setOnClickListener(new OnClickListener(){
        	public void onClick(View v){
        		finish();
        	}
        });
        
        int recordInterval = Integer.parseInt(recordingInterval);
        long recordDuration = Long.parseLong(recordingDuration);
        
        Log.v("server", serverUrl);
        Log.v("Duratioin", ""+recordDuration);
        Log.v("Interval", ""+recordInterval);
        
        DummyAppSingleton app = DummyAppSingleton.getInstance();
        app.updateConfiguration(serverUrl);
        app = new SensornetApp(serverUrl, recordInterval, recordDuration);
        server = new RemoteServer(serverUrl);
        
    }*/

}
